<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href="{:U("Tasks/Tasks/refresh")}" class="on"><em>刷新任务管理</em></a>
  <span>|</span><a href="{:U("Tasks/Tasks/refreshadd")}"><em>添加任务</em></a></div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad-lr-10">
    <div class="explain-col"> 温馨提示：想要计划任务顺利执行，需要一个触发媒介！ <br />独立主机用户可以在系统增加计划任务间隔20秒执行访问[http://网站地址/index.php?g=Tasks]。<br />虚拟主机用户，需要在网站模板中最底部增加一个js调用[&lt;script type="text/javascript" src="http://网站地址/index.php?g=Tasks"&gt;&lt;/script&gt;]以游客访问页面的形式触发！</div>
    <div class="bk10"></div>
    <div class="table-list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="20">ID</th>
            <th>名称</th>
            <th width="120">时间间隔（分）</th>
            <th width="120">最后执行时间</th>
            <th width="80">状态</th>
            <th width="180">操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name="data" id="vo">
          <tr>
            <td align="center">{$vo.gid}</td>
            <td >{$vo.name}</td>
            <td align="center">{$vo.dotime}</td>
            <td align="center"><if condition=" $vo['lasttime'] ">{$vo.lasttime|date="Y-m-d H:i:s",###}<else/>还未执行过</if></td>
            <td align="center"><if condition=" $vo['isopen'] ">开启<else/>关闭</if></td>
            <td align="center"><a href="javascript:confirmurl('{:U("Tasks/refreshdelete",array("gid"=>$vo['gid']))}','确认要删除吗？')">删除</a> | <a href="{:U("Tasks/refreshedit",array("gid"=>$vo['gid'],"typeid"=>$vo['type']))}">编辑</a></td>
          </tr>
         </volist>
        </tbody>
      </table>
      <div class="btn"></div>
      <div id="pages">{$Page}</div>
    </div>
</div>
</body>
</html>